package com.softroad.help.app.constant;

import java.util.Map;

import android.os.Environment;

/**
 * 
 * @brief 数据常量
 * @author Fanhao.Yi
 * @date 2015年5月4日下午5:22:35
 * @version V1.0
 */
public class DataConst {
	/**
	 * 初始化注册
	 */
	public static Boolean isFirstRegister = false;
	/**
	 * 初始化Banner标示
	 */
	public static Boolean firstInitBanner = true;
	/**
	 * 双击退出函数
	 */
	public static Boolean isExit = false;
	/**
	 * 手机号码长度
	 */
	public static final int phoneLength = 11;
	/**
	 * 验证号码长度
	 */
	public static final int authorCodeLength = 6;

	/**
	 * 用于存放倒计时时间
	 */
	public static Map<String, Long> map;
	/**
	 * 接口返回成功
	 */
	public static final int SUCCESS = 0;
	/**
	 * 接口返回失败
	 */
	public static final int FAIL = 5;
	/**
	 * 
	 */
	public static final int REQUESTCODEOK = 1;
	/**
	 * 地址登录入口
	 */
	public static final String ADDRESSID = "0";
	/**
	 * 宝宝信息入口
	 */
	public static final String BABYID = "1";
	/**
	 * 个人中心登录入口
	 */
	public static final String MINEID = "2";
	/*
	 * 本地保存路径
	 */
	public static String PATH = Environment.getExternalStorageDirectory()
			.getAbsolutePath() + "/BanJiaJia/";

	/**
	 * 初始化定位城市
	 */
	public static String mCity = "";

	/******************************** 服务端错误代码 **********************************/
	public static final int ERROR_ONE = 10000;
	public static final int ERROR_TWO = 10001;
	public static final int ERROR_THREE = 10002;
	public static final int ERROR_FOUR = 10003;
	public static final int ERROR_FIVE = 10013;
	public static final int ERROR_SIX = 10016;
	public static final int ERROR_SEVEN = 10017;
	public static final int ERROR_EIGHT = 10018;
	public static final int ERROR_NINE = 10019;
	public static final int ERROR_TEN = 10020;
	public static final int ERROR_EVEVEN = 10021;
	public static final int ERROR_TWELVE = 20001;
	public static final int ERROR_THIRTEEN = 20004;
	public static final int ERROR_FOURTEEN = 20006;
	public static final int ERROR_FIFTEEN = 20008;
	public static final int ERROR_SIXTEEN = 20009;
	public static final int ERROR_SEVENTEEN = 20010;
	public static final int ERROR_EIGHTEEN = 20102;
	public static final int ERROR_NINETEEN = 20201;
	public static final int ERROR_TWENTY = 20202;
	public static final int ERROR_TWENTY_ONE = 20203;
	public static final int ERROR_TWENTY_TWO = 20204;
	public static final int ERROR_TWENTY_THREE = 20205;
	public static final int ERROR_TWENTY_FOUR = 20208;
	public static final int ERROR_TWENTY_FIVE = 20209;
	public static final int ERROR_TWENTY_SIX = 20210;
	public static final int ERROR_TWENTY_SEVEN = 20214;
	public static final int ERROR_TWENTY_EIGHT = 20215;
	/******************************** End **********************************/
	// 初始化参数
	public static final String TEACHER = "teacher";
	public static final String CONFIG = "CONFIG";
	public static final String TIMEID = "timeID";
}
